package com.github.nuggets.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.nuggets.model.entity.NuggetsAccountEntity;
import com.github.nuggets.model.entity.NuggetsFansEntity;
import com.github.nuggets.model.entity.NuggetsFoucEntity;
import com.github.nuggets.model.result.PageResult;

import java.util.List;
import java.util.Optional;


/**
 * @description:
 * @author: wangsj
 * @date: 2022/3/17 5:50 下午
 */

public interface FansRepository extends IService<NuggetsFansEntity> {

    Boolean addFansRecord(Long account,Long fans);

    Optional<NuggetsFansEntity> findFansRecord(Long account, Long fans);

    List<Long> listFansIds(Long account);

    PageResult<Long> pageFansIds(Long account, Integer pageIndex, Integer pageSize);

}
